package io;

import java.io.FileInputStream;
import java.util.Scanner;

/**
 * @Author: wenjingyuan
 * @Date: 2023/05/29/20:20
 * @Description:
 */
public class InputStreamDemo4 {
    public static void main(String[] args) {
        try (FileInputStream fileInputStream=new FileInputStream("b.txt")){
            try(Scanner scanner=new Scanner(fileInputStream,"utf8")){
                while(scanner.hasNext()){
                    System.out.println(scanner.nextLine());
                }
            }
        }catch (Exception e){
        }
    }
}
